<template>
  <div class="index-page">
    <footer-page/>
    <div class="zero-list">
      <ul>
        <li v-for="(item,index) in zeroList" :key="item.id">
          <img src="../../assets/images/pic1.jpg" alt>
          <div class="list-info clearfix">
            <div class="zero-left">
              <h2>KET考试高分秘笈</h2>
              <p class="intrduce">共7节（包含1节试听课）</p>
              <p class="tag">
                <span>备考</span>
                <span>高效</span>
              </p>
            </div>
            <div class="zero-right">
              <p>已报45678人</p>
              <button @click="toDetail(index)">去报名</button>
            </div>
          </div>
        </li>
      </ul>
    </div>
    <div class="none">已经到底喽～</div>
  </div>
</template>

<script>
import { Dialog, Toast, Loading } from "vant";
import FooterPage from "../../components/footer";
export default {
  components: {
    [Dialog.name]: Dialog,
    [Toast.name]: Toast,
    [Loading.name]: Loading,
    FooterPage
  },
  data() {
    return {
      zeroList: [{}, {}, {}]
    };
  },
  mounted() {
    //  Toast.loading({
    //       mask: true,
    //       message: "加载中..."
    //     });
  },
  methods: {
    toDetail() {
      this.$router.push({ path: "/CourseIntrduce" });
    }
  }
};
</script>
<style>
</style>

<style lang="scss" scoped>
.index-page {
  background: #fff;
}
.zero-list {
  padding: 0.33rem 0.3rem 0 0.3rem;
  ul {
    li {
      margin-bottom: 0.4rem;
      box-shadow: 0 0.02rem 0.2rem #f0f0f0;
      padding-bottom: 0.3rem;
      border-top-right-radius: 0.4rem;
      border-top-left-radius: 0.4rem;
          background: #fff;
      img {
        width: 100%;
        height: 3.75rem;
        border-top-right-radius: 0.4rem;
        border-top-left-radius: 0.4rem;
      }
    }
  }
  .zero-left {
    width: 57%;
    float: left;
    padding-left: 3%;
    padding-top: 0.27rem;
    h2 {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      font-size: 0.4rem;
      font-weight: 600;
    }
    p.intrduce {
      font-size: 0.28rem;
      margin-top: 0.05rem;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }
    p.tag {
      padding-top: 0.17rem;
      span {
        font-size: 0.24rem;
        color: #ff6422;
        padding: 2px 10px;
        border-radius: 0.2rem;
        border: 0.02rem solid #ff6422;
        margin-right: 0.1rem;
      }
    }
  }
  .zero-right {
    width: 37%;
    float: right;
    padding-top: 0.37rem;
    padding-right: 3%;
    text-align: right;
    p {
      font-size: 0.24rem;
      color: #999999;
      text-align: right;
    }
    button {
      height: 0.7rem;
      line-height: 0.7rem;
      width: 1.75rem;
      border: 0;
      border-radius: 0.4rem;
      background: #ff6422;
      color: #fff;
      font-size: 0.32rem;
      margin-top: 0.5rem;
      &:active {
        background: #dd460c;
      }
    }
  }
}
.none {
  font-size: 0.26rem;
  color: #cccccc;
  margin-top: 0.7rem;
  padding-bottom: 1.6rem;
  text-align: center;
}
</style>
